package com.peanut.boot.entiity;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @className: com.peanut.boot.entiity-> BasicNetiity
 * @description: 猫实体。
 * @createDate: 2021-09-21 8:56
 * @version: 1.0
 */
@Component
@ConfigurationProperties(value = "cat")
public class Cat {
    private  String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Pet{" +
                "name='" + name + '\'' +
                '}';
    }
}
